/**
 * By Alpha
 * Author: alixez <alixe.z@foxmail.com>
 * Date: 2017/11/14
 */

// import { RouterTool } from '../router';
import { routerTool as RouterTool } from '../router/routerTool';

export default [
  // 主菜单
  // {
  //   id: '1',
  //   level: '1',
  //   // icon: 'laptop',
  //   // breadParentID: '1',
  //   // UTIcon: 'icon_work',
  //   name: '工作通知',
  //   route: '/worknotice',
  //   sort: 1,
  // },

  {
    id: '10001',
    level: '1',
    icon: 'home',
    name: '首页',
    route: '/home',
    sort: 10001,
  },
  {
    id: '10002',
    level: '1',
    icon: 'book',
    // UTIcon: 'icon_work',
    name: '审批',
    route: RouterTool.getPathByName('Examine'),
    sort: 10002,
  },
  {
    id: '10003',
    level: '1',
    icon: 'hdd',
    // UTIcon: 'icon_work',
    name: '资源库',
    route: RouterTool.getPathByName('Repository'),
    sort: 10003,
  },
  {
    id: '10004',
    level: '1',
    name: '工作',
    icon: 'appstore-o',
    route: '/expenditure',
    sort: 10004,
  },
  {
    id: '10005',
    level: '1',
    icon: 'contacts',
    // UTIcon: 'icon_work',
    name: '通讯录',
    route: RouterTool.getPathByName('AddressList'),
    sort: 10005,
  },
  {
    id: '10006',
    level: '1',
    icon: 'bar-chart',
    // UTIcon: 'icon_work',
    name: '统计',
    route: RouterTool.getPathByName('Statistics'),
    sort: 10006,
  },
  {
    id: '10007',
    level: '1',
    icon: 'solution',
    name: '招新',
    route: RouterTool.getPathByName('RecruitnewStatistics'),
    sort: 10007,
  },
  {
    id: '10008',
    level: '1',
    icon: 'profile',
    name: '账户',
    route: RouterTool.getPathByName('accountManagement'),
    sort: 10008,
  },
  {
    id: '10009',
    level: '1',
    icon: 'team',
    name: '社团',
    route: '/org',
    sort: '10009',
  },

  // 工作 下级 10004 下级 === START
  {
    id: '100040001',
    level: '2',
    // icon: 'laptop',
    // UTIcon: 'icon_work',
    name: '经费',
    route: RouterTool.getPathByName('Expenditure'),
    sort: 100040001,
    parentID: '10004',
  },
  {
    id: '100040002',
    level: '2',
    // icon: 'laptop',
    // UTIcon: 'icon_work',
    name: '借用',
    route: RouterTool.getPathByName('ItemsBorrowed'),
    sort: 100040002,
    parentID: '10004',
  },

  {
    id: '100040003',
    level: '1',
    // icon: 'laptop',
    // UTIcon: 'icon_work',
    name: '活动',
    route: RouterTool.getPathByName("Activity"),
    sort: 100040003,
    parentID: '10004',
  },

  {
    id: '100040004',
    level: '1',
    // icon: 'laptop',
    // UTIcon: 'icon_work',
    name: '满意度调查',
    route: RouterTool.getPathByName("SatisfactionSurvey"),
    sort: 100040003,
    parentID: '10004',
  },
  // 工作下级 ==== END

  // 账户下级菜单 === START
  {
    id: '100080001',
    level: '2',
    // icon: 'laptop',
    // UTIcon: 'icon_work',
    name: '账号管理',
    route: RouterTool.getPathByName('accountManagement'),
    sort: 100080001,
    parentID: '-1',
  },
  // 账户下级菜单 === END

  // 二级统计菜单 10006 下级   ==== START
  {
    id: '100060001',
    parentID: '10006',
    level: '2',
    name: '经费统计',
    route: RouterTool.getPathByName('ForStatistics'),
    sort: 100060001,
  },
  {
    id: '100060002',
    parentID: '10006',
    level: '2',
    name: '活动统计',
    route: RouterTool.getPathByName('ActivityStatistics'),
    sort: 100060001,
  },
  {
    id: '100060003',
    parentID: '10006',
    level: '2',
    name: '人员统计',
    route: RouterTool.getPathByName('PersonnelStatistics'),
    sort: 100060001,
  },
  {
    id: '100060004',
    parentID: '10006',
    level: '2',
    name: '新媒体统计',
    route: RouterTool.getPathByName('NewMediaStatistics'),
    sort: 100060004,
  },

  {
    id: '100060006',
    parentID: '10006',
    level: '2',
    name: '满意度统计',
    // UTIcon: 'icon_compile',
    route: RouterTool.getPathByName('SatisfactionStatistics'),
    sort: 100060006,
  },
  {
    id: '100060007',
    parentID: '10006',
    level: '2',
    name: '星级评定',
    route: RouterTool.getPathByName('StarRating'),
    sort: 100060007,
  },

  // 统计二级菜单 ====== END

  // 招新二级菜单 === START

  {
    id: '100070001',
    parentID: '10007',
    level: '3',
    name: '招新表格',
    route: RouterTool.getPathByName('RecruitnewStatisticsUploadTableFile'),
    sort: 100070001,
  },
  {
    id: '100070002',
    parentID: '10007',
    level: '3',
    name: '人员详情',
    route: RouterTool.getPathByName('RecruitnewStatisticsPersonDetails'),
    sort: 100070002,
  },
  {
    id: '100070003',
    parentID: '10007',
    level: '2',
    name: '数据统计',
    route: RouterTool.getPathByName('RecruitnewStatisticsDataStatistics'),
    sort: 100070003,
  },
  // 招新二级菜单 === END

  {
    id: '19',
    level: '2',
    parentID: '-1',
    breadParentID: '8',
    // icon: 'laptop',
    // UTIcon: 'icon_work',
    name: '经费详情',
    route: RouterTool.getPathByName('ExpenditureDetails'),
    sort: 19,
  },
  {
    id: '20',
    parentID: '-1',
    level: '2',
    breadParentID: '8',
    // icon: 'laptop',
    // UTIcon: 'icon_work',
    name: '添加申请',
    route: RouterTool.getPathByName('AddExpenditure'),
    sort: 20,
  },
  {
    id: '21',
    level: '2',
    parentID: '-1',
    breadParentID: '4',
    // icon: 'laptop',
    // UTIcon: 'icon_work',
    name: '活动详情',
    route: RouterTool.getPathByName("ActivityDetails"),
    sort: 21,
  },
  {
    id: '22',
    parentID: '-1',
    level: '2',
    breadParentID: '4',
    // icon: 'laptop',
    // UTIcon: 'icon_work',
    name: '添加活动',
    route: RouterTool.getPathByName("AddActivity"),
    sort: 22,
  },
  {
    id: '23',
    level: '2',
    parentID: '-1',
    breadParentID: '9',
    // icon: 'laptop',
    // UTIcon: 'icon_work',
    name: '借用详情',
    route: RouterTool.getPathByName('ItemsBorrowedDetails'),
    sort: 23,
  },
  {
    id: '24',
    parentID: '-1',
    level: '2',
    breadParentID: '9',
    // icon: 'laptop',
    // UTIcon: 'icon_work',
    name: '借用申请',
    route: RouterTool.getPathByName('AddItemsBorrowed'),
    sort: 24,
  },
  {
    id: '25',
    parentID: '-1',
    level: '2',
    breadParentID: '3',
    // icon: 'laptop',
    // UTIcon: 'icon_work',
    name: '审批-借用详情',
    route: RouterTool.getPathByName('ExamineItemSborrowedDetails'),
    sort: 25,
  },
  {
    id: '26',
    parentID: '-1',
    level: '2',
    breadParentID: '3',
    // icon: 'laptop',
    // UTIcon: 'icon_work',
    name: '审批-经费详情',
    route: RouterTool.getPathByName('ExamineExpenditureDetails'),
    sort: 26,
  },
  {
    id: '27',
    parentID: '-1',
    level: '2',
    breadParentID: '3',
    // icon: 'laptop',
    // UTIcon: 'icon_work',
    name: '审批-活动详情',
    route: RouterTool.getPathByName('ExamineActivityDetails'),
    sort: 27,
  },
  {
    id: '28',
    parentID: '10008',
    level: '2',
    breadParentID: '10008',
    // icon: 'laptop',
    // UTIcon: 'icon_work',
    name: '基本资料',
    route: RouterTool.getPathByName('AccountManagementBaseInfo'),
    sort: 28,
  },
  {
    id: '29',
    parentID: '10008',
    level: '2',
    breadParentID: '10008',
    // icon: 'laptop',
    // UTIcon: 'icon_work',
    name: '我的社团',
    route: RouterTool.getPathByName('AccountManagementMyMember'),
    sort: 29,
  },
  {
    id: '30',
    parentID: '10008',
    level: '2',
    breadParentID: '10008',
    // icon: 'laptop',
    // UTIcon: 'icon_work',
    name: '修改密码',
    route: RouterTool.getPathByName('AccountManagementChangePassword'),
    sort: 30,
  },
  {
    id: '31',
    parentID: '-1',
    level: '2',
    breadParentID: '6',
    // icon: 'laptop',
    // UTIcon: 'icon_work',
    name: '发起调查',
    route: RouterTool.getPathByName('AddSatisfactionSurvey'),
    sort: 31,
  },
  {
    id: '35',
    parentID: '-1',
    level: '3',
    breadParentID: '18',
    name: '满意度调查统计详情',
    route: RouterTool.getPathByName('SatisfactionStatisticsDetails'),
    sort: 35,
  },
  {
    id: '36',
    parentID: '-1',
    level: '3',
    breadParentID: '15',
    name: '手动录入',
    route: '/star-rating/handMove',
    sort: 36,
  },

  // 社团 下级 ==== START
  {
    id: '100090001',
    parentID: '10009',
    level: '2',
    name: '社团资料',
    route: '/organization/info',
    sort: '100090001',
  },

  {
    id: '100090002',
    parentID: '10009',
    level: '2',
    name: '团员管理',
    route: RouterTool.getPathByName('OrganizationMember'),
    sort: '100090002',
  },

  {
    id: '100090003',
    parentID: '10009',
    level: '2',
    name: '部门管理',
    route: RouterTool.getPathByName('OrganizationDepartment'),
    sort: '100090003',
  },

  {
    id: '100090004',
    parentID: '10009',
    level: '2',
    name: '审批流程',
    route: '/organization/approvelFlow',
    sort: '100090004',
  },

  {
    id: '100090005',
    parentID: '10009',
    level: '2',
    name: '管理员',
    route: '/organization/admin',
    sort: '100090005',
  },

  {
    id: '100090006',
    parentID: '10009',
    level: '2',
    name: '操作日志',
    route: '/organization/logs',
    sort: '100090006',
  },
  
].sort((a, b) => Number(a.sort) - Number(b.sort));
